package net.servir.censo.web.controller;

import java.util.LinkedList;

import javax.servlet.http.HttpServletRequest;

import net.servir.censo.model.AdmTablasMaestras;
import net.servir.censo.model.TablaMaestra;
import net.servir.censo.service.CensoService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class AdmTablasMaestrasController {
	
	@Autowired
	private CensoService censoService;
	
	@RequestMapping("/admTablasMaestras.htm")
	public @ModelAttribute("admTablasMaestras")
	AdmTablasMaestras admTablasMaestras(HttpServletRequest request) {
		AdmTablasMaestras obj = new AdmTablasMaestras();
		
		//TODO:Obtener listado de Tablas Maestras
		LinkedList<TablaMaestra> listTablaMaestra = null;
		
		obj.setList_tabla_maestra(listTablaMaestra);
		
		
		return obj;
	}
}
